﻿@{
    ViewBag.Title = ViewBag.ParkingName + "车牌信息列表";
    Layout = "~/Views/Shared/_Layout.cshtml";

}
@using AFT.Parking.Entity;
@using AFT.Parking.Foundation;
@using AFT.Parking.WebSite.Common

@model IPagedList<AFT.Parking.Entity.Parkings.PositionCarsOfAreasMapping>
<div class="content-box">
    <!-- Start Content Box -->
    <div class="content-box-header">
        <h3>@ViewBag.ParkingAreaShareName 车牌信息列表</h3>

        <div class="clear"></div>
    </div>
    <form id="frm">
        <!-- End .content-box-header -->
        <div class="content-box-content">
            <div class="tab-content default-tab" id="tab1">
                <!-- This is the target div. id must match the href of this div's tab -->
                <div class="notification attention png_bg">
                    车牌号码：@Html.TextBox("number",null,new {@class="searchBox"})
                    <input type="submit" value="查询" class="button" />
                </div>
                <table>
                    <thead>
                        <tr>
                            <th>区域</th>
                            <th>车牌号</th>
                            <th>大图路径</th>
                            <th>小图路径</th>
                            <th>时间</th>
                        </tr>
                    </thead>
                    <tfoot>
                        <tr>
                            <td colspan="4">
                                <div class="pagination">
                                    @Html.Pager(Model)
                                </div>
                                <!-- End .pagination -->
                                <div class="clear"></div>
                            </td>
                        </tr>
                    </tfoot>
                    <tbody id="tBodyRows">
                        @foreach (var item in Model.Rows)
                        {
                            <tr id="@("tr"+item.AreaShareRecord.Id)">
                                <td>@item.ParkingLotName, @item.ParkingAreaName, @item.ParkingAreaShareName</td>
                                <td>
                                    @item.AreaShareRecord.CarNumber
                                </td>
                                <td><img src="@item.AreaShareRecord.BigCarNumberImg" style=" cursor:pointer;" width="80px" height="60px" onclick="window.open('@item.AreaShareRecord.BigCarNumberImg')" /></td>
                                <td><img src="@item.AreaShareRecord.SmallCarNumberImg" style=" cursor:pointer;" width="80px" height="60px" onclick="window.open('@item.AreaShareRecord.SmallCarNumberImg')" /></td>
                                <td>@item.AreaShareRecord.ParkingDate</td>
                            </tr>
                        }
                    </tbody>
                </table>
            </div>
            <!-- End #tab1 -->
        </div>
        <!-- End .content-box-content -->
    </form>
</div>
